package com.droowa.model.service;

import java.sql.SQLException;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;







import com.droowa.domain.ExchangeManagement;
import com.droowa.domain.ReturnManagement;
import com.droowa.model.dao.ReturnManagementDAO;

@Service
public class ReturnManagementServiceImpl implements ReturnManagementService{
	
	@Autowired
	private ReturnManagementDAO dao;
	
	@Override
	public int joinReturnManagement(ReturnManagement returnManagement) throws SQLException {
		return dao.insertReturnManagement(returnManagement);
	}

	@Override
	public int removeReturnManagement(String orderNumber) throws SQLException {
		return dao.deleteReturnManagement(orderNumber);
	}

	@Override
	public int modifyReturnManagement(ReturnManagement returnManagement) throws SQLException {
		return dao.updateReturnManagement(returnManagement);
	}

	@Override
	public List getReturnManagementByAll(HashMap map) throws SQLException {
		List<ReturnManagement> list = dao.selectReturnManagementByAll(map);
		return list;
	}
}
